package com.example.redistest.ThreadDemo;

public class Processor3 implements Runnable {

    @Override
    public void run() {
        for (int i=0; i<100; i++) {
            System.out.println(Thread.currentThread().getName()+"====>"+i);
            //每执行一次循环线程休眠1000毫秒
            try {
                Thread.sleep(1000);
            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
}
